{{ define "link" }}
{{end}}
{{ define "script" }}
{{end}}
{{ define "style" }}
{{end}}
{{ define "content" }}
<h4>授权信息</h4>
<h6>授权给：{{.authorize}}</h6>
<h6>版本：{{.version}}</h6>
<h6>注册码：{{.reg_code}}</h6>
<h6>到期时间：{{.exp_time}}</h6>
<div class="mb-2 mt-2">
    <button class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#modalUpload">载入新的授权文件</button>
    <span>或</span>
    <button class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#modalCode">载入新的授权Code</button>
</div>

<div class="modal fade" id="modalCode" tabindex="-1" aria-labelledby="modalCodeLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h1 class="modal-title fs-5" id="modalCodeLabel">授权Code激活</h1>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div id="modalCodeBody" class="modal-body">
                <label for="code">授权Code</label>
                <input type="text" id="code" class="form-control" name="code" />
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-bs-dismiss="modal" onclick="Code()">确认</button>
                <button type="button" class="btn btn-danger" data-bs-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="modalUpload" tabindex="-1" aria-labelledby="modalUploadLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h1 class="modal-title fs-5" id="modalUploadLabel">授权文件上传</h1>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div id="modalUploadBody" class="modal-body">
                <input type="file" id="upload_file" class="form-control" name="file" />
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-bs-dismiss="modal" onclick="Upload()">确认</button>
                <button type="button" class="btn btn-danger" data-bs-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
{{ end }}
{{ define "scripts" }}
<script>
    function Upload(){

    }

    function Code(){

    }
</script>
{{ end }}